//
//  MSAddCommentsViewController.m
//  MSJD
//
//  Created by xiangbo on 2018/12/10.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MSAddCommentsViewController.h"

@interface MSAddCommentsViewController ()

@end

@implementation MSAddCommentsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBarHidden = NO;
    self.title = self.dataSource.title;
    [self.view addSubview:self.dataSource.scrollView];
    [self.dataSource.scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    // Do any additional setup after loading the view.
    [self addBackNavigationBarButtonWithSEL:@selector(backButtonClick)];
}

- (MSAddCommentDataSource *)dataSource{
    if (!_dataSource) {
        _dataSource = [MSAddCommentDataSource new];
    }
    return _dataSource;
}

#pragma mark - Event Response

- (void)backButtonClick {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
